package com.jason.um.utils;

import org.springframework.util.IdGenerator;
import org.springframework.util.StringUtils;

import java.util.UUID;
import java.util.function.Supplier;

/**
 * @ClassName StringIdGenerator
 * @Description TODO
 * @Author Jason
 * @Date 2019/1/25 17:28
 * @Version 1.0
 **/
public class StringIdGenerator {
    /**
     * Generate a new identifier.
     *
     * @return the generated identifier
     */
    public static String get() {
        return StringUtils.replace(UUID.randomUUID().toString(), "-", "");
    }
}
